bondscell_results$a9c0b54c-ba74-41b1-8baf-a02cf3edf764queued¤logsrunning¦outputbody2 mimetext/htmlrootassigneecoollast_run_timestampAŰpersist_js_state·has_pluto_hook_features§cell_id$a9c0b54c-ba74-41b1-8baf-a02cf3edf764depends_on_disabled_cells§runtime_published_object_keysdepends_on_skipped_cells§errored$6d43f0c4-2475-44e5-9365-d717f98e3bbaqueued¤logsrunning¦outputbody%tex (generic function with 2 methods)mimetext/plainrootassigneelast_run_timestampALpersist_js_state·has_pluto_hook_features§cell_id$6d43f0c4-2475-44e5-9365-d717f98e3bbadepends_on_disabled_cells§runtime)published_object_keysdepends_on_skipped_cells§errored$e59ed5bc-9e19-418a-9b01-ccaea6820096queued¤logsrunning¦outputbodymimetext/plainrootassigneelast_run_timestampA0persist_js_state·has_pluto_hook_features§cell_id$e59ed5bc-9e19-418a-9b01-ccaea6820096depends_on_disabled_cells§runtimeoƵpublished_object_keysdepends_on_skipped_cells§errored$b82b0cdd-58b6-4cd9-8814-4b7046894bcequeued¤logsrunning¦outputbodymimetext/plainrootassigneelast_run_timestampA]persist_js_state·has_pluto_hook_features§cell_id$b82b0cdd-58b6-4cd9-8814-4b7046894bcedepends_on_disabled_cells§runtimepublished_object_keysdepends_on_skipped_cells§errored$2b72a4ec-c88e-11eb-30b1-8d574ab0e3f1queued¤logsrunning¦outputbodymimetext/plainrootassigneelast_run_timestampA{persist_js_state·has_pluto_hook_features§cell_id$2b72a4ec-c88e-11eb-30b1-8d574ab0e3f1depends_on_disabled_cells§runtime3qpublished_object_keysdepends_on_skipped_cells§errored$16534443-6fc2-4d48-a821-26b622859a6equeued¤logsrunning¦outputbodymsg#syntax: "\" is not a unary operatorstacktracesource_packagefilesyntax error.jlfuncthrow_syntax_errorcall_short#throw_syntax_error(syntax_err::Any)inlined£urlbfile:///home/runner/.julia/packages/Pluto/6smog/src/runner/PlutoRunner/src/display/syntax error.jlpath[/home/runner/.julia/packages/Pluto/6smog/src/runner/PlutoRunner/src/display/syntax error.jlcall#throw_syntax_error(syntax_err::Any)linfo_typeCore.MethodInstanceline̲parent_modulefrom_cŒsource_packagefile4katex fun.jl#==#16534443-6fc2-4d48-a821-26b622859a6efunc##function_wrapped_cell#2041call_shorttop-level scopeinlinedãurlpathj/home/runner/work/disorganised-mess/disorganised-mess/katex fun.jl#==#16534443-6fc2-4d48-a821-26b622859a6ecalltop-level scopelinfo_typeNothinglineparent_modulefrom_c¤mime'application/vnd.pluto.stacktrace+objectrootassigneelast_run_timestampA[}persist_js_state·has_pluto_hook_features§cell_id$16534443-6fc2-4d48-a821-26b622859a6edepends_on_disabled_cells§runtimepublished_object_keysdepends_on_skipped_cells§errored$a4c2094f-5e6f-4e4f-8bcb-703513e54c8aqueued¤logsrunning¦outputbody}mimetext/htmlrootassigneesmalldoglast_run_timestampA-7persist_js_state·has_pluto_hook_features§cell_id$a4c2094f-5e6f-4e4f-8bcb-703513e54c8adepends_on_disabled_cells§runtimevεpublished_object_keysdepends_on_skipped_cells§errored$c13e40a9-adb2-4679-9839-5b22d2470914queued¤logsrunning¦outputbodyquote #= /home/runner/work/disorganised-mess/disorganised-mess/katex fun.jl#==#6d43f0c4-2475-44e5-9365-d717f98e3bba:31 =# Main.workspace#4.SlottedLaTeX(parts = ["\\frac{1 + ", "}{", " + x}"], slots = [π ^ 2, Scrubbable(5)]) endmimetext/plainrootassigneelast_run_timestampAspersist_js_state·has_pluto_hook_features§cell_id$c13e40a9-adb2-4679-9839-5b22d2470914depends_on_disabled_cells§runtime.mpublished_object_keysdepends_on_skipped_cells§errored$34f87c79-bde2-4f80-a598-f02cac3c00d4queued¤logsrunning¦outputbody:

You can use inside markdown!

mimetext/htmlrootassigneelast_run_timestampA8ڰpersist_js_state·has_pluto_hook_features§cell_id$34f87c79-bde2-4f80-a598-f02cac3c00d4depends_on_disabled_cells§runtime -published_object_keysdepends_on_skipped_cells§errored$6d0d02ce-d309-4e34-bb4d-2e8dd9712f87queued¤logsrunning¦outputbodymsgUndefVarError: x not definedstacktracecall_shorttop-level scopeinlined£urlpathj/home/runner/work/disorganised-mess/disorganised-mess/katex fun.jl#==#6d0d02ce-d309-4e34-bb4d-2e8dd9712f87source_packagecalltop-level scopelinfo_typeCore.CodeInfolinefile4katex fun.jl#==#6d0d02ce-d309-4e34-bb4d-2e8dd9712f87functop-level scopeparent_modulefrom_c¤mime'application/vnd.pluto.stacktrace+objectrootassigneelast_run_timestampAopersist_js_state·has_pluto_hook_features§cell_id$6d0d02ce-d309-4e34-bb4d-2e8dd9712f87depends_on_disabled_cells§runtimepublished_object_keysdepends_on_skipped_cells§erroredñcell_dependencies$a9c0b54c-ba74-41b1-8baf-a02cf3edf764precedence_heuristic cell_id$a9c0b54c-ba74-41b1-8baf-a02cf3edf764downstream_cells_mapcool$34f87c79-bde2-4f80-a598-f02cac3c00d4x$6d0d02ce-d309-4e34-bb4d-2e8dd9712f87upstream_cells_map@tex$6d43f0c4-2475-44e5-9365-d717f98e3bbaPlutoRunner.Base.getPlutoRunner#PlutoRunner.PlutoRunner.create_bond@bindSlottedLaTeX$e59ed5bc-9e19-418a-9b01-ccaea6820096smalldog$a4c2094f-5e6f-4e4f-8bcb-703513e54c8aPlutoRunner.Core.applicableScrubbable$6d43f0c4-2475-44e5-9365-d717f98e3bbaprecedence_heuristic cell_id$6d43f0c4-2475-44e5-9365-d717f98e3bbadownstream_cells_map@tex$a9c0b54c-ba74-41b1-8baf-a02cf3edf764$34f87c79-bde2-4f80-a598-f02cac3c00d4$c13e40a9-adb2-4679-9839-5b22d2470914texupstream_cells_map:@assertescSlottedLaTeX$e59ed5bc-9e19-418a-9b01-ccaea6820096StringAnyendallExprisalength===push!throwAssertionError+!===$e59ed5bc-9e19-418a-9b01-ccaea6820096precedence_heuristic cell_id$e59ed5bc-9e19-418a-9b01-ccaea6820096downstream_cells_mapBase.show$e59ed5bc-9e19-418a-9b01-ccaea6820096SlottedLaTeX$a9c0b54c-ba74-41b1-8baf-a02cf3edf764$6d43f0c4-2475-44e5-9365-d717f98e3bbaupstream_cells_mapIOHypertextLiteral.BypassHypertextLiteral.content@MIME_strAnyStringVector@htlHypertextLiteral.ScriptTagBaseBase.show$e59ed5bc-9e19-418a-9b01-ccaea6820096mapBase.@kwdefHypertextLiteral.ResultHypertextLiteral$2b72a4ec-c88e-11eb-30b1-8d574ab0e3f1$b82b0cdd-58b6-4cd9-8814-4b7046894bceprecedence_heuristiccell_id$b82b0cdd-58b6-4cd9-8814-4b7046894bcedownstream_cells_mapPlutoUIupstream_cells_map$2b72a4ec-c88e-11eb-30b1-8d574ab0e3f1precedence_heuristiccell_id$2b72a4ec-c88e-11eb-30b1-8d574ab0e3f1downstream_cells_mapHypertextLiteral$e59ed5bc-9e19-418a-9b01-ccaea6820096upstream_cells_map$16534443-6fc2-4d48-a821-26b622859a6eprecedence_heuristic cell_id$16534443-6fc2-4d48-a821-26b622859a6edownstream_cells_mapupstream_cells_mapPlutoRunnerPlutoRunner.throw_syntax_error$a4c2094f-5e6f-4e4f-8bcb-703513e54c8aprecedence_heuristic cell_id$a4c2094f-5e6f-4e4f-8bcb-703513e54c8adownstream_cells_mapsmalldog$a9c0b54c-ba74-41b1-8baf-a02cf3edf764upstream_cells_mapBaseBase.Docs.HTML@html_str$c13e40a9-adb2-4679-9839-5b22d2470914precedence_heuristic cell_id$c13e40a9-adb2-4679-9839-5b22d2470914downstream_cells_mapupstream_cells_map@tex$6d43f0c4-2475-44e5-9365-d717f98e3bbaBase@macroexpandBase.macroexpand#___this_pluto_module_name$34f87c79-bde2-4f80-a598-f02cac3c00d4precedence_heuristic cell_id$34f87c79-bde2-4f80-a598-f02cac3c00d4downstream_cells_mapupstream_cells_map@md_strBase.getindexBase@tex$6d43f0c4-2475-44e5-9365-d717f98e3bbacool$a9c0b54c-ba74-41b1-8baf-a02cf3edf764$6d0d02ce-d309-4e34-bb4d-2e8dd9712f87precedence_heuristic cell_id$6d0d02ce-d309-4e34-bb4d-2e8dd9712f87downstream_cells_mapupstream_cells_mapx$a9c0b54c-ba74-41b1-8baf-a02cf3edf764cell_execution_order$2b72a4ec-c88e-11eb-30b1-8d574ab0e3f1$b82b0cdd-58b6-4cd9-8814-4b7046894bce$16534443-6fc2-4d48-a821-26b622859a6e$a4c2094f-5e6f-4e4f-8bcb-703513e54c8a$e59ed5bc-9e19-418a-9b01-ccaea6820096$6d43f0c4-2475-44e5-9365-d717f98e3bba$a9c0b54c-ba74-41b1-8baf-a02cf3edf764$6d0d02ce-d309-4e34-bb4d-2e8dd9712f87$34f87c79-bde2-4f80-a598-f02cac3c00d4$c13e40a9-adb2-4679-9839-5b22d2470914last_hot_reload_timeshortpathkatex fun.jlprocess_statusreadypathB/home/runner/work/disorganised-mess/disorganised-mess/katex fun.jlpluto_versionv0.19.47last_save_timeAcell_order$16534443-6fc2-4d48-a821-26b622859a6e$a9c0b54c-ba74-41b1-8baf-a02cf3edf764$6d0d02ce-d309-4e34-bb4d-2e8dd9712f87$34f87c79-bde2-4f80-a598-f02cac3c00d4$2b72a4ec-c88e-11eb-30b1-8d574ab0e3f1$b82b0cdd-58b6-4cd9-8814-4b7046894bce$6d43f0c4-2475-44e5-9365-d717f98e3bba$c13e40a9-adb2-4679-9839-5b22d2470914$a4c2094f-5e6f-4e4f-8bcb-703513e54c8a$e59ed5bc-9e19-418a-9b01-ccaea6820096published_objectsnbpkginstall_time_nsz@Ϭinstantiatedòinstalled_versionsPlutoUI0.7.37HypertextLiteral0.9.3terminal_outputsnbpkg_sync Instantiating... ===  Installed Parsers ─ v2.2.3 Installed PlutoUI ─ v0.7.37  Resolving... ===  No Changes to `/tmp/jl_rZxAdt/Project.toml`  Updating `/tmp/jl_rZxAdt/Manifest.toml`  [7b1f6079] + FileWatching Precompiling... ===  Activating project at `/tmp/jl_rZxAdt` Precompiling project... 3 dependencies successfully precompiled in 30 seconds (13 already precompiled)PlutoUI Instantiating... ===  Installed Parsers ─ v2.2.3 Installed PlutoUI ─ v0.7.37  Resolving... ===  No Changes to `/tmp/jl_rZxAdt/Project.toml`  Updating `/tmp/jl_rZxAdt/Manifest.toml`  [7b1f6079] + FileWatching Precompiling... ===  Activating project at `/tmp/jl_rZxAdt` Precompiling project... 3 dependencies successfully precompiled in 30 seconds (13 already precompiled)HypertextLiteral Instantiating... ===  Installed Parsers ─ v2.2.3 Installed PlutoUI ─ v0.7.37  Resolving... ===  No Changes to `/tmp/jl_rZxAdt/Project.toml`  Updating `/tmp/jl_rZxAdt/Manifest.toml`  [7b1f6079] + FileWatching Precompiling... ===  Activating project at `/tmp/jl_rZxAdt` Precompiling project... 3 dependencies successfully precompiled in 30 seconds (13 already precompiled)enabled÷restart_recommended_msgrestart_required_msgbusy_packageswaiting_for_permission,waiting_for_permission_but_probably_disabled«cell_inputs$a9c0b54c-ba74-41b1-8baf-a02cf3edf764cell_id$a9c0b54c-ba74-41b1-8baf-a02cf3edf764codeفcool = @tex(""" f(x) = \\oint_{ x \\in \\mathbb{R} } \\frac{ 1 + $(smalldog) }{ $(@bind x Scrubbable(5)) + x } """)metadatashow_logsèdisabled®skip_as_script«code_folded$6d43f0c4-2475-44e5-9365-d717f98e3bbacell_id$6d43f0c4-2475-44e5-9365-d717f98e3bbacodebegin macro tex(x) tex(x) end # `_str` macros with interpolation are not reactive in pluto 🙈 until https://github.com/fonsp/Pluto.jl/pull/1032 is fixed. :(( #macro tex_str(_x::String) # x = Meta.parse("\"" * _x * "\"") # tex(x) #end function tex(ex::Expr) @assert ex.head === :string if ex.args[1] isa String parts = String[ex.args[1]] slots = Any[] else parts = ["\\hspace{0pt}"] slots = [ex.args[1]] end for x in ex.args[2:end] if x isa String all(==(' '), x) ? push!(parts, "\\hspace{0pt}") : push!(parts, x) else length(parts) != length(slots) + 1 && push!(parts, "\\hspace{0pt}") push!(slots, x) end end if length(slots) == length(parts) push!(parts, "\\hspace{0pt}") end quote SlottedLaTeX( parts = $parts, slots = [$(esc.(slots)...)], ) end end function tex(x::String) SlottedLaTeX( parts=[x], slots=[], ) end endmetadatashow_logsèdisabled®skip_as_script«code_folded$e59ed5bc-9e19-418a-9b01-ccaea6820096cell_id$e59ed5bc-9e19-418a-9b01-ccaea6820096codeWbegin Base.@kwdef struct SlottedLaTeX parts::Vector{String} slots::Vector{Any} # displaymode::Bool=true end function Base.show(io::IO, m::MIME"text/html", sl::SlottedLaTeX) h = @htl(""" """) Base.show(io, m, h) end endmetadatashow_logsèdisabled®skip_as_script«code_folded$b82b0cdd-58b6-4cd9-8814-4b7046894bcecell_id$b82b0cdd-58b6-4cd9-8814-4b7046894bcecodeusing PlutoUImetadatashow_logsèdisabled®skip_as_script«code_folded$2b72a4ec-c88e-11eb-30b1-8d574ab0e3f1cell_id$2b72a4ec-c88e-11eb-30b1-8d574ab0e3f1codeusing HypertextLiteralmetadatashow_logsèdisabled®skip_as_script«code_folded$16534443-6fc2-4d48-a821-26b622859a6ecell_id$16534443-6fc2-4d48-a821-26b622859a6ecodeD$f(x) = \oint_{ x \in \mathbb{R} } \frac{ 1 + ⠀ }{ ⠁ + x } $metadatashow_logsèdisabled®skip_as_script«code_folded$a4c2094f-5e6f-4e4f-8bcb-703513e54c8acell_id$a4c2094f-5e6f-4e4f-8bcb-703513e54c8acodeٓsmalldog = html""" """metadatashow_logsèdisabled®skip_as_script«code_folded$c13e40a9-adb2-4679-9839-5b22d2470914cell_id$c13e40a9-adb2-4679-9839-5b22d2470914codeB@macroexpand @tex("""\\frac{1 + $(π^2)}{$(Scrubbable(5)) + x}""")metadatashow_logsèdisabled®skip_as_script«code_folded$34f87c79-bde2-4f80-a598-f02cac3c00d4cell_id$34f87c79-bde2-4f80-a598-f02cac3c00d4codeblet sl = @tex("Slotted\\LaTeX") md""" You can use $(sl) inside markdown! $(cool) """ endmetadatashow_logsèdisabled®skip_as_script«code_folded$6d0d02ce-d309-4e34-bb4d-2e8dd9712f87cell_id$6d0d02ce-d309-4e34-bb4d-2e8dd9712f87codexmetadatashow_logsèdisabled®skip_as_script«code_folded«notebook_id$5274ac10-4aa4-11f0-0506-11faa1c7d499in_temp_dir¨metadata